package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IinvitationRecordFragmentModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.resp.RecordSpreadEntity;
import com.wgts.wgts.netmodle.resp.RecordSummaryEntity;

import java.util.List;

public class InvitationRecordFragmentModel implements IinvitationRecordFragmentModel {

    private NetService netService;

    public InvitationRecordFragmentModel(NetService netService) {
        this.netService = netService;
    }

    @Override
    public void initSpread(String type, HttpResultSubscriber<List<RecordSpreadEntity>> subscriber) {
        netService.recordSpread(type, subscriber);
    }

    @Override
    public void initSummary(String type, HttpResultSubscriber<RecordSummaryEntity> subscriber) {
        netService.recodeSummary(type, subscriber);
    }
}
